package com.example.service.leaseImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.domain.user_lease;
import com.example.mapper.user_lease.leaseQuery;
import com.example.service.lease.leaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class leaseServiceImpl extends ServiceImpl<leaseQuery, user_lease> implements leaseService {
    @Resource
    private leaseQuery leaseQuery;

    @Override
    public boolean insert(user_lease userLease) {
        return leaseQuery.insert(userLease)>0;
    }

    @Override
    public boolean updata(String openid, int articlesid,String format,int yuqifeiyong) {
        return leaseQuery.updatenumber(openid,articlesid,format,yuqifeiyong);
    }
}
